package com.bdqn.blog.service.impl;

import com.bdqn.blog.entity.Comment;
import com.bdqn.blog.mapper.CommentMapper;
import com.bdqn.blog.service.CommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 评论 服务实现类
 * </p>
 *
 * @author 阿桐幕
 * @since 2020-10-29
 */
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements CommentService {

    @Resource
    private CommentMapper commentMapper;

    @Override
    public int SaveCommentUp(Integer id, Integer up) {
        return commentMapper.SaveCommentUp(id, up);
    }
}
